package com.hsbc.dev.teamo4.sms.sm.po;

import com.hsbc.dev.teamo4.sms.common.base.EntityBean;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author : yang
 * @version:
 * @Project: permission_manage
 * @Package: com.hsbc.dev.teamo4.sms.sm.po
 * @Description:
 * @Date date: 2018/7/27
 */
public class Role extends EntityBean {
    @NotBlank(message = "id  cannot be blank")
    private String id;
    @NotBlank(message = "roleName  roleName be blank")
    @Max(10)
    @Min(2)
    private String roleName;
    @NotNull(message = "roleGrade cannot be null")
    private int roleGrade;

    public int getRoleGrade() {
        return roleGrade;
    }

    public void setRoleGrade(int roleGrade) {
        this.roleGrade = roleGrade;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }



    @Override
    public String toString() {
        return "Role{" +
                "roleName='" + roleName + '\'' +
                ", id='" + id + '\'' +
                ", roleGrade='" + roleGrade + '\'' +
                super.toString()+'\''+
                '}';
    }
}
